<template name="workflow_menu">

    <div class="cell">

        <div class="bd">
            <div class="weui_cells_title">{{_ "My Approval"}}</div>
            <div class="weui_cells weui_cells_access">
                {{#each spaces}}
                    <a class="weui_cell" href="{{urlPrefix}}/workflow/space/{{this._id}}/inbox/">
                        <div class="weui_cell_hd"><i class="ion ion-archive"></i></div>
                        <div class="weui_cell_bd weui_cell_primary">
                            &nbsp;{{_ "inbox"}}&nbsp;{{this.name}}
                        </div>
                        <div class="weui_cell_ft">
                            <small class="label bg-red">{{this.inbox_count}}</small>
                        </div>
                    </a>
                {{/each}}
                <a class="weui_cell" href="{{urlPrefix}}/workflow/space/{{spaceId}}/outbox/">
                    <div class="weui_cell_hd"><i class="ion ion-android-done-all"></i></div>
                    <div class="weui_cell_bd weui_cell_primary">
                        &nbsp;{{_ "outbox"}}
                    </div>
                    <div class="weui_cell_ft">
                    </div>
                </a>
            </div>
            <div class="weui_cells_title">{{_ "My Applications"}}</div>
            <div class="weui_cells weui_cells_access">
                <a class="weui_cell" href="{{urlPrefix}}/workflow/space/{{spaceId}}/draft/">
                    <div class="weui_cell_hd"><i class="ion ion-compose"></i></div>
                    <div class="weui_cell_bd weui_cell_primary">
                        &nbsp;{{_ "draft"}}
                    </div>
                </a>
                <a class="weui_cell" href="{{urlPrefix}}/workflow/space/{{spaceId}}/pending/">
                    <div class="weui_cell_hd"><i class="ion ion-ios-loop"></i></div>
                    <div class="weui_cell_bd weui_cell_primary">
                        &nbsp;{{_ "pending"}}
                    </div>
                </a>
                <a class="weui_cell" href="{{urlPrefix}}/workflow/space/{{spaceId}}/completed/">
                    <div class="weui_cell_hd"><i class="ion ion-android-checkbox-outline"></i></div>
                    <div class="weui_cell_bd weui_cell_primary">
                        &nbsp;{{_ "completed"}}
                    </div>
                </a>
            </div>


            <div class="weui_cells weui_cells_access">
                <a class="weui_cell" href="{{urlPrefix}}/workflow/space/{{spaceId}}/monitor/">
                    <div class="weui_cell_hd"><i class="ion ion-eye"></i></div>
                    <div class="weui_cell_bd weui_cell_primary">
                        &nbsp;{{_ "monitor"}}
                    </div>
                    <div class="weui_cell_ft">
                    </div>
                </a>
            </div>
        </div>
    </div>

</template>